import request from '@/utils/request'


// 呼叫日志
export function getCallLogByPage(params) {
  return request({
    url: '/doorLog/getCallLogByPage',
    method: 'post',
    data: params,
  })
}

// 门禁日志
export function getOpenDoorLogByPage(params) {
  return request({
    url: '/doorLog/getOpenDoorLogByPage',
    method: 'post',
    data: params,
  })
}

// 查看图片
export function getImgPath(params) {
  return request({
    url: '/doorLog/getImgPath',
    method: 'get',
    params: params,
  })
}

// 导出呼叫
export function downloadCallLog(params) {
  return request({
    url: '/doorLog/downloadCallLog',
    method: 'post',
    data: params,
    responseType:'blob'
  })
}

//导出开门
export function downloadOpenDoorLog(params) {
  return request({
    url: '/doorLog/downloadOpenDoorLog',
    method: 'post',
    data: params,
    responseType:'blob',
  })
}